
const { ccclass, property } = cc._decorator;

@ccclass
export default class BlinkEyeComp extends cc.Component {


    // @property(cc.Node)
    // eyelids: cc.Node = null;

    start() {
        this.openEye()
    }

    openEye() {
        this.node.active = true;
        cc.tween(this).to(0.2, {}).call(this.closeEye.bind(this)).start()
    }

    closeEye() {
        this.node.active = false;
        cc.tween(this).to(2, {}).call(this.openEye.bind(this)).start();
    }

    // update (dt) {}
}
